#include <iostream>
#include <string>
#include <cstdio>
#include <unistd.h>
#include <stdlib.h>

int main()
{
    std::size_t size_  = atoi(getenv("Content-Length"));    
    std::string pragam_;
    char c;

    while(size_)
    {
        read(0, &c, 1);
        size_--;
        pragam_ += c;
    }

    int a = 0;
    int b = 0;

    sscanf(pragam_.c_str(), "a=%d&b=%d", &a, &b);
    std::cout<<"a = "<<a<<" "<<"b = "<<b<<std::endl;

    return 0;
}
